package cn.ctodb.wxmp.service.dto;

import javax.validation.constraints.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;


/**
 * A DTO for the MessageTp entity.
 */
public class MessageTpDTO implements Serializable {

    private Long id;

    private String templateId;

    private String url;

    @Size(max = 4000)
    private String data;


    private Long touserId;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Long getTouserId() {
        return touserId;
    }

    public void setTouserId(Long userInfoId) {
        this.touserId = userInfoId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        MessageTpDTO messageTpDTO = (MessageTpDTO) o;

        if ( ! Objects.equals(id, messageTpDTO.id)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return Objects.hashCode(id);
    }

    @Override
    public String toString() {
        return "MessageTpDTO{" +
            "id=" + id +
            ", templateId='" + templateId + "'" +
            ", url='" + url + "'" +
            ", data='" + data + "'" +
            '}';
    }
}
